home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / MOUNT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  47 lines

  1. /*
  2.  *
  3.  * Definitions for mount interface. This describes the in the kernel build 
  4.  * linkedlist with mounted filesystems.
  5.  *
  6.  * Author:  Marco van Wieringen <mvw@planets.elm.net>
  7.  *
  8.  * Version: $Id: mount.h,v 2.0 1996/11/17 16:48:14 mvw Exp mvw $
  9.  *
  10.  */
  11. #ifndef _LINUX_MOUNT_H
  12. #define _LINUX_MOUNT_H
  13.  
  14. #define DQUOT_USR_ENABLED    0x01        /* User diskquotas enabled */
  15. #define DQUOT_GRP_ENABLED    0x02        /* Group diskquotas enabled */
  16.  
  17. struct quota_mount_options
  18. {
  19.     unsigned int flags;            /* Flags for diskquotas on this device */
  20.     struct semaphore semaphore;        /* lock device while I/O in progress */
  21.     struct file *files[MAXQUOTAS];        /* fp's to quotafiles */
  22.     time_t inode_expire[MAXQUOTAS];        /* expiretime for inode-quota */
  23.     time_t block_expire[MAXQUOTAS];        /* expiretime for block-quota */
  24.     char rsquash[MAXQUOTAS];        /* for quotas threath root as any other user */
  25. };
  26.  
  27. struct vfsmount
  28. {
  29.   kdev_t mnt_dev;            /* Device this applies to */
  30.   char *mnt_devname;            /* Name of device e.g. /dev/dsk/hda1 */
  31.   char *mnt_dirname;            /* Name of directory mounted on */
  32.   unsigned int mnt_flags;        /* Flags of this device */
  33.   struct super_block *mnt_sb;        /* pointer to superblock */
  34.   struct quota_mount_options mnt_dquot;    /* Diskquota specific mount options */
  35.   struct vfsmount *mnt_next;        /* pointer to next in linkedlist */
  36. };
  37.  
  38. struct vfsmount *lookup_vfsmnt(kdev_t dev);
  39.  
  40. /*
  41.  *    Umount options
  42.  */
  43.  
  44. #define MNT_FORCE    0x00000001    /* Attempt to forcibily umount */
  45.  
  46. #endif /* _LINUX_MOUNT_H */
  47.